import {
	INCREMENT,
	DECREMENT,
  SENDUSERLIST
} from './types'
import getters from './getters'

const state = {
  count: 20,
  sendToUserList: []
};


const mutations = {
	[INCREMENT](state) {
		state.count++;
	},
  [SENDUSERLIST](state,wxName) {
    state.sendToUserList.push(wxName)
  },
	[DECREMENT](state) {
		state.count--;
	}
};

export default {
	state,
	mutations,
	getters
}
